using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Sudoku.GamePlay
{
	public class BoardCell
	{
		private byte value;

		public byte Value { get { return value; } set { if(!this.Fixed) this.value = value; } }

		public bool[] Guess = { false, false, false, false, false, false, false, false, false};

		public bool Fixed = false;

		public static implicit operator BoardCell( int value )
		{
			BoardCell c = new BoardCell();
			c.Value = (byte) value;
			return c;
		}

		public BoardCell()
		{
			value = 0;
		}

		public BoardCell(BoardCell o)
		{
			value = o.Value;
			Fixed = o.Fixed;
		}
	}
}
